package com.itheima.Demo04;

import com.itheima.Demo04.AAA;

public class DemoLock锁 {
    public static void main(String[] args) {
        //创建对象;
        AAA ab = new AAA();
        Thread mt = new Thread(ab);
        mt.setName("窗口一");
        mt.start();
        Thread mt2 = new Thread(ab);
        mt2.setName("窗口二");
        mt2.start();
    }
}
